From: Giuseppe Scrivano Date: Tue, 7 Oct 2014 11:10:08 +0000 (+0200) Subject: http: set the HTTP status on directory listing X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~1090 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=92c5a9f99211c10b506294164e4bfd1ff66639c7;p=ostree.git http: set the HTTP status on directory listing Fix a HTTP response header like the following: HTTP/1.1 0 (null) Server: ostree-httpd libsoup/2.48.0 Date: Tue, 07 Oct 2014 11:19:22 GMT Content-Type: text/html Content-Length: 12533 Signed-off-by: Giuseppe Scrivano --- diff --git a/src/ostree/ot-builtin-trivial-httpd.c b/src/ostree/ot-builtin-trivial-httpd.c index e8c06e37..5ca1e4bf 100644 --- a/src/ostree/ot-builtin-trivial-httpd.c +++ b/src/ostree/ot-builtin-trivial-httpd.c @@ -205,6 +205,7 @@ do_get (OtTrivialHttpd *self, soup_message_set_response (msg, "text/html", SOUP_MEMORY_TAKE, listing->str, listing->len); + soup_message_set_status (msg, SOUP_STATUS_OK); g_string_free (listing, FALSE); } }